package java101;

import java.util.Scanner;

public class LongLat {

	public static class Latitude{
		static int degreesLat;
		static int minutesLat;
		static int secondsLat;
		static String directionLat;
		
		  void printStudentDetails(){
		        System.out.println("Degree minute seconds:      " + degreesLat + " " + minutesLat + " " + secondsLat + " " + directionLat);
		    }
		}
	
	public class Longitude{
		int degreesLong;
		int minutesLong;
		int secondsLong;
		char directionLong;
		
		  void printStudentDetails(){
		        System.out.println("Degree minute seconds:      " + degreesLong + " " + minutesLong + " " + secondsLong + " " + directionLong);
		    }
	}
	
	/*
	public static void main(String[] args) {
		 int degLat;
		 int minLat;
		 int secLat;
		 String dirLat;
		    Scanner scan = new Scanner(System.in);
		    System.out.println("Enter degrees latitude: ");
		    degLat  = scan.nextInt();
		    Scanner scan2 = new Scanner(System.in);
		    System.out.println("Enter minutes latitude: ");
		    minLat  = scan2.nextInt();
		    Scanner scan3 = new Scanner(System.in);
		    System.out.println("Enter seconds latitude: ");
		    secLat  = scan3.nextInt();
		    Scanner scan4 = new Scanner(System.in);
		    System.out.println("Enter direction latitude: ");
		    dirLat  = scan4.nextLine();
		    
		    if (degLat >=0 && degLat <= 180
		    		&& minLat >= 0 && minLat <= 60
		    		&& secLat >= 0 && secLat <= 60
		    		&& dirLat.compareToIgnoreCase("south") == 0 | dirLat.compareToIgnoreCase("north") == 0){
		    	Latitude.degreesLat = degLat;
		    	Latitude.minutesLat = minLat;
		    	Latitude.secondsLat = secLat;
		    	Latitude.directionLat = dirLat;
		    	
		    }
		    
	}
*/
}
